package cn.lanqiao.bigDate.service.data;

import cn.lanqiao.bigDate.entity.data.DataOrderStatus;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface DataOrderStatusService {

    /**
     * 分页
     * @param page
     * @param searchOrderStatusName
     * @return
     */
    IPage<DataOrderStatus> findOrderStatusByPage(Page<DataOrderStatus> page, String searchOrderStatusName);

    /**
     * 按订单编号查询
     * @param orderNumber
     * @return
     */
    DataOrderStatus findOrderNumber(int orderNumber);

    /**
     * 按照订单编号删除
     * @param numbers
     * @return
     */
    Boolean deleteOrderNumber(String numbers);

    /**
     * 添加订单信息
     * @param dataOrderStatus
     * @return
     */
    Boolean addOrderStatusData(DataOrderStatus dataOrderStatus);

    /**
     * 修改订单信息
     * @param dataOrderNumber
     * @return
     */
    Boolean updateOrderByNumber(DataOrderStatus dataOrderNumber);
}
